package com.bean;

import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;

import java.time.LocalDate;
import java.time.LocalTime;

public class Pwork {
    private String pworkname;
    private String pno;
    private String pworkposion;

    private String wtime;

    private LocalDate begintime;

    private BooleanProperty selected = new SimpleBooleanProperty(false);

    public boolean isSelected() {
        return selected.get();
    }

    public void setSelected(boolean selected) {
        this.selected.set(selected);
    }

    public BooleanProperty selectedProperty() {
        return selected;
    }

    public String getPworkname() {
        return pworkname;
    }

    public void setPworkname(String pworkname) {
        this.pworkname = pworkname;
    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getPworkposion() {
        return pworkposion;
    }

    public void setPworkposion(String pworkposion) {
        this.pworkposion = pworkposion;
    }

    public String getWtime() {
        return wtime;
    }

    public void setWtime(String wtime) {
        this.wtime = wtime;
    }

    public LocalDate getBegintime() {
        return begintime;
    }

    public void setBegintime(LocalDate begintime) {
        this.begintime = begintime;
    }

    public LocalDate getOuttime() {
        return outtime;
    }

    public void setOuttime(LocalDate outtime) {
        this.outtime = outtime;
    }

    private LocalDate outtime;

    public Pwork(){}
    public Pwork(String pworkname, String pno, String pworkposion, String wtime, LocalDate begintime, LocalDate outtime) {
        this.pworkname = pworkname;
        this.pno = pno;
        this.pworkposion = pworkposion;
        this.wtime = wtime;
        this.begintime = begintime;
        this.outtime = outtime;
    }
}
